-- GENERATED SPELL FOR [Murkblood Healer] --


function spell0_17730(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(29427,pUnit)
pUnit:RegisterEvent('Sorts_17730', 2500, 1)
end

function spell1_17730(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(37979,pUnit)
pUnit:RegisterEvent('Sorts_17730', 2500, 1)
end

function spell2_17730(pUnit, Event) --@Prayer of Healing,Self--
pUnit:FullCastSpellOnTarget(15585,pUnit)
pUnit:RegisterEvent('Sorts_17730', 3000, 1)
end

function spell3_17730(pUnit, Event) --@Prayer of Healing,Self--
pUnit:FullCastSpellOnTarget(35943,pUnit)
pUnit:RegisterEvent('Sorts_17730', 3000, 1)
end

function spell4_17730(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(34423,pUnit)
pUnit:RegisterEvent('Sorts_17730', 15000, 1)
end

function spell5_17730(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(37978,pUnit)
pUnit:RegisterEvent('Sorts_17730', 15000, 1)
end

function Sorts_17730(pUnit, Event)
local choix_sorts_17730 = math.random(0, 5)
if choix_sorts_17730 == 0 then
pUnit:RegisterEvent('spell0_17730', 1, 1)
end
if choix_sorts_17730 == 1 then
pUnit:RegisterEvent('spell1_17730', 1, 1)
end
if choix_sorts_17730 == 2 then
pUnit:RegisterEvent('spell2_17730', 1, 1)
end
if choix_sorts_17730 == 3 then
pUnit:RegisterEvent('spell3_17730', 1, 1)
end
if choix_sorts_17730 == 4 then
pUnit:RegisterEvent('spell4_17730', 1, 1)
end
if choix_sorts_17730 == 5 then
pUnit:RegisterEvent('spell5_17730', 1, 1)
end
end

function mob17730_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17730', math.random(1500, 3000), 1)
end

function mob17730_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17730_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17730_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17730, 1, 'mob17730_Action')
RegisterUnitEvent(17730, 2, 'mob17730_Leave')
RegisterUnitEvent(17730, 3, 'mob17730_Kill')
RegisterUnitEvent(17730, 4, 'mob17730_Die')
